package com.ee.chat.common.dao;

import com.ee.chat.common.entity.UserAccessLog;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ${author}
 * @since 2021-02-24
 */
public interface UserAccessLogMapper extends BaseMapper<UserAccessLog> {
    /**
     * 获取访问数量
     * @param userId    用户id
     * @param date      指定时间后的数据
     * @return
     */
    int getUserNum(@Param("userId") Integer userId, @Param("date")Date date);
}
